package com.water.controller;

import com.water.entity.SyMenu;
import com.water.service.SyMenuService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (SyMenu)表控制层
 *
 * @author makejava
 * @since 2020-12-14 19:19:02
 */
@Controller
@RequestMapping("syMenu")
public class SyMenuController {
    /**
     * 服务对象
     */
    @Resource
    private SyMenuService syMenuService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public SyMenu selectOne(Integer id) {
        return this.syMenuService.queryById(id);
    }


}